package com.edu.service.impl;

import com.edu.bean.CommonResult;
import com.edu.service.UserService;

/**
 * @Author:mx
 * @Date:2025/11/10-15:13:39
 */

public class UserServiceImpl implements UserService {
    @Override
    public void addUser() {
        System.out.println("执行了 addUser");
        System.out.println(1/0);
        System.out.println("业务方法执行完毕");
    }

    @Override
    public void deleteUser() {
        System.out.println("执行了 deleteUser");
    }

    @Override
    public void updateUser() {
        System.out.println("执行了 updateUser");
    }

    @Override
    public void selectUser() {
        System.out.println("执行了 selectUser");
    }

    @Override
    public int selectUserNum(String str) {
        System.out.println(str);
        System.out.println("执行了原本的业务 selectUserNum");
        return  1;
    }
}
